package com.woniuxy.woniuticket.moviemodule.service;

import com.woniuxy.woniuticket.pojo.CinemaSeats;

import java.util.List;

/**
 * @author Utopia
 * @title: CinemaSeatsService
 * @projectName woniuticket
 * @description: TODO
 * @date 2019/5/30 17:48
 */
public interface CinemaSeatsService {
    //电影票锁定检查
    boolean seatCheck(List<CinemaSeats> list);
    //根据影厅查询座位信息
    List<CinemaSeats> selectSeatsBySid(CinemaSeats cinemaSeats);
    //插入座位信息到redis
    int insertCinemaSeatsToRedis(List<CinemaSeats> lists);
    //插入座位信息到mysql
    int insertCinemaSeatsToMysql(CinemaSeats cinemaSeats);
    //更新座位信息
    int updateCinemaSeats(CinemaSeats cinemaSeats);
}
